<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/head.css" type="text/css" media="screen" />
<%-- <link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/leftnav.css" type="text/css" media="screen" /> --%>
<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/displaytag.css" type="text/css" media="screen" />

<script src="<%=request.getContextPath()%>/resources/js/tree.js" type="text/javascript" language="javascript"></script>
<script src="<%=request.getContextPath()%>/resources/js/pager.js" type="text/javascript" language="javascript"> </script>
<script src="<%=request.getContextPath()%>/resources/js/jquery-1.5.js" type="text/javascript" language="javascript"></script>
<script src="<%=request.getContextPath()%>/resources/js/jquery.form.js" type="text/javascript" language="javascript"></script>
<script src="<%=request.getContextPath()%>/resources/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<script>

function myPrePage(){
var currentPage = parseInt($("#currentPage").html());
if(currentPage ==1){
	alert("当前已经是第一页");
	return ;
}

jumpToPage('queryForm','queryListDiv', currentPage -1 ,function(){
	null;
});
}

function myNextPage(){
var currentPage = parseInt($("#currentPage").html());
var allPages = parseInt($("#allPages").html());
if(currentPage ==allPages){
	alert("当前已经是最后一页");
	return ;
}

jumpToPage('queryForm','queryListDiv', currentPage + 1 ,function(){
	null;
});
}

function myGotoPage(){
	var pageChangeTo=$("#changePageTo").val();
	jumpToPage('queryForm','queryListDiv', pageChangeTo ,function(){
		null;
	});

}
</script>
